<!--别踩白块-->
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>2</title>
		<script type="text/javascript" src="js/index.js"></script>
		<style>
			#container{
				width:400px;
				display:block;
				margin:0 auto;
			}
			canvas{
				display:block;
			}
			#bt{
				font-family: "Adobe 黑体 Std R";
				font-size:1em;
				display:block;
				width:100px;
				height:60px;
				margin:10px auto;
			}
			#divTimer{
				text-align: center;
			}
		</style>
	</head>
	<body>
		<div id="container">
			<div id='divTimer' style="font-size: 20px; color: #ff9f9f; ">0.0</div>
			<canvas width="400" height="600" style="border: 1px solid #000000;"></canvas>
			<button id="bt" type="button" onclick="Game.gameStart()">
				游戏开始
			</button>
		</div>
	</body>
	<script>
		var Game = new WhiteBlock(document.querySelector('canvas'));
		<!--单个canvas 用querySelector方便 -->
	</script>
</html>